package com.jsgt.greekfire.common.http

import com.jsgt.greekfire.bean.CoinListBean
import com.jsgt.greekfire.bean.MyOrderBean
import com.jsgt.greekfire.bean.MyUserAdBean
import com.jsgt.greekfire.bean.OtcAdBean
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST

interface OTCTraddingService {
    /**
     * 获取币种列表
     */
    @GET("api/otc/otcCoin")
    suspend fun getMyCoinList(): ResponseData<List<CoinListBean>>

    /**
     * 获取GFC币种列表数据
     */
    @POST("api/otc/ad")
    suspend fun otcAd(@Body params: RequestBody):ResponseData<OtcAdBean>

    /**
     * 点击item出售  判断是否可以购买
     */
    @POST("api/otc/adState")
    suspend fun otcAdState(@Body params: RequestBody):ResponseData<Any>
    /**
     * 出售
     */
    @POST("api/otc/addOrder")
    suspend fun addOrder(@Body params: RequestBody):ResponseData<Any>
    /**
     * 订单列表
     */
    @POST("api/otc/userOrder")
    suspend fun userOrder(@Body params: RequestBody):ResponseData<MyOrderBean>
    /**
     * 订单列表
     */
    @POST("api/otc/userAd")
    suspend fun userAd(@Body params: RequestBody):ResponseData<MyOrderBean>
    /**
     * 发布广告
     */
    @POST("api/otc/addAd")
    suspend fun addAd(@Body params: RequestBody):ResponseData<Any>
    /**
     * 撤去广告
     */
    @POST("api/otc/adDown")
    suspend fun adDown(@Body params: RequestBody):ResponseData<Any>


}